package com.ilancuo.thinkinjava.chapter_19;

/**
 * Created by ilancuo on 2018/8/4.
 */

enum Search {
    HITHER, YOU
}

public class UpcastEnum {
    public static void main(String[] args) {
        Search[] vals = Search.values();
        Enum e = Search.HITHER;
        for (Enum en : e.getClass().getEnumConstants())
            System.out.println(en);
    }
}
